#include <iostream>
#include <string>
#include <vector>
using namespace std;

int fact(int My_number) //函数的声明及定义
{
  My_number = abs(My_number);
  return My_number;
}
int main() {
  cout << "请输入需要计算绝对值的数字:";
  int Given_number;
  cin >> Given_number;
  int Out_put = fact(Given_number); //函数的调用部分
  cout << Given_number << "的绝对值为：" << Out_put << endl;
  return 0;
}